using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_DeXuatCungUngManagerBase
    {
        public TBL_DeXuatCungUngManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity Insert(TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity Update(TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity UpdateWithCondition(TBL_DeXuatCungUngEntity obj,TBL_DeXuatCungUngEntity objCond)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_DeXuatCungUngEntity Delete(TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_DeXuatCungUngEntity DeleteWithCondition(TBL_DeXuatCungUngEntity objCond)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByMaDXCungUng (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByMaDXCungUng (string MaDXCungUng )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByMaPB (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaPB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaPB 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByMaPB (string MaPB )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaPB = MaPB;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"MaPB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNgayDapUng (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NgayDapUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayDapUng 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNgayDapUng (string NgayDapUng )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUng = NgayDapUng;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NgayDapUng");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNgayDapUngDuKien (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NgayDapUngDuKien");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayDapUngDuKien 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNgayDapUngDuKien (string NgayDapUngDuKien )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUngDuKien = NgayDapUngDuKien;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NgayDapUngDuKien");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNgayDeXuat (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NgayDeXuat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NgayDeXuat 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNgayDeXuat (string NgayDeXuat )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDeXuat = NgayDeXuat;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NgayDeXuat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNguoiDeXuat (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NguoiDeXuat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien NguoiDeXuat 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteByNguoiDeXuat (string NguoiDeXuat )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NguoiDeXuat = NguoiDeXuat;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"NguoiDeXuat");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteBySoPhieuDX (TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"SoPhieuDX");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien SoPhieuDX 
        /// </summary>
        /// <returns>TBL_DeXuatCungUngEntity</returns>
        public TBL_DeXuatCungUngEntity DeleteBySoPhieuDX (string SoPhieuDX )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.SoPhieuDX = SoPhieuDX;  
            return (TBL_DeXuatCungUngEntity)Adapter.DeleteByField(obj,"SoPhieuDX");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_DeXuatCungUngEntity Select(TBL_DeXuatCungUngEntity obj)
        { 
            return (TBL_DeXuatCungUngEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_DeXuatCungUngEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_DeXuatCungUngEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_DeXuatCungUngEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_DeXuatCungUngEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_DeXuatCungUngEntity> SelectAllLST()
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_DeXuatCungUngEntity()),new TBL_DeXuatCungUngEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_DeXuatCungUngEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_DeXuatCungUngEntity(),option),new TBL_DeXuatCungUngEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaDXCungUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaDXCungUngLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaDXCungUngLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaDXCungUng",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (string MaDXCungUng )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return Adapter.SelectByField(obj,"MaDXCungUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDXCungUng (string MaDXCungUng, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return Adapter.SelectByField(obj,"MaDXCungUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaDXCungUngLST (string MaDXCungUng )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDXCungUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaDXCungUngLST (string MaDXCungUng, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaDXCungUng = MaDXCungUng;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDXCungUng",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaPB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaPB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaPBLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaPBLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaPB",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (string MaPB )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaPB = MaPB;  
            return Adapter.SelectByField(obj,"MaPB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaPB (string MaPB, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaPB = MaPB;  
            return Adapter.SelectByField(obj,"MaPB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaPBLST (string MaPB )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaPB = MaPB;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaPB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByMaPBLST (string MaPB, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.MaPB = MaPB;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaPB",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUng (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayDapUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUng (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayDapUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDapUng"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayDapUng",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUng (string NgayDapUng )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUng = NgayDapUng;  
            return Adapter.SelectByField(obj,"NgayDapUng");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUng (string NgayDapUng, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUng = NgayDapUng;  
            return Adapter.SelectByField(obj,"NgayDapUng",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngLST (string NgayDapUng )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUng = NgayDapUng;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDapUng"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUng duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngLST (string NgayDapUng, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUng = NgayDapUng;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDapUng",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUngDuKien (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayDapUngDuKien");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUngDuKien (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayDapUngDuKien",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngDuKienLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDapUngDuKien"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngDuKienLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayDapUngDuKien",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUngDuKien (string NgayDapUngDuKien )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUngDuKien = NgayDapUngDuKien;  
            return Adapter.SelectByField(obj,"NgayDapUngDuKien");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDapUngDuKien (string NgayDapUngDuKien, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUngDuKien = NgayDapUngDuKien;  
            return Adapter.SelectByField(obj,"NgayDapUngDuKien",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngDuKienLST (string NgayDapUngDuKien )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUngDuKien = NgayDapUngDuKien;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDapUngDuKien"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDapUngDuKien duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDapUngDuKienLST (string NgayDapUngDuKien, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDapUngDuKien = NgayDapUngDuKien;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDapUngDuKien",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDeXuat (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"NgayDeXuat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDeXuat (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NgayDeXuat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDeXuatLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDeXuat"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDeXuatLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NgayDeXuat",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDeXuat (string NgayDeXuat )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDeXuat = NgayDeXuat;  
            return Adapter.SelectByField(obj,"NgayDeXuat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNgayDeXuat (string NgayDeXuat, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDeXuat = NgayDeXuat;  
            return Adapter.SelectByField(obj,"NgayDeXuat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDeXuatLST (string NgayDeXuat )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDeXuat = NgayDeXuat;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDeXuat"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NgayDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNgayDeXuatLST (string NgayDeXuat, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NgayDeXuat = NgayDeXuat;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NgayDeXuat",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDeXuat (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"NguoiDeXuat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDeXuat (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"NguoiDeXuat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNguoiDeXuatLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiDeXuat"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNguoiDeXuatLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"NguoiDeXuat",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDeXuat (string NguoiDeXuat )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NguoiDeXuat = NguoiDeXuat;  
            return Adapter.SelectByField(obj,"NguoiDeXuat");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByNguoiDeXuat (string NguoiDeXuat, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NguoiDeXuat = NguoiDeXuat;  
            return Adapter.SelectByField(obj,"NguoiDeXuat",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNguoiDeXuatLST (string NguoiDeXuat )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NguoiDeXuat = NguoiDeXuat;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiDeXuat"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien NguoiDeXuat duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectByNguoiDeXuatLST (string NguoiDeXuat, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.NguoiDeXuat = NguoiDeXuat;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"NguoiDeXuat",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoPhieuDX (TBL_DeXuatCungUngEntity obj)
        { 
            return Adapter.SelectByField(obj,"SoPhieuDX");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoPhieuDX (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"SoPhieuDX",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectBySoPhieuDXLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoPhieuDX"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectBySoPhieuDXLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"SoPhieuDX",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoPhieuDX (string SoPhieuDX )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.SoPhieuDX = SoPhieuDX;  
            return Adapter.SelectByField(obj,"SoPhieuDX");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectBySoPhieuDX (string SoPhieuDX, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.SoPhieuDX = SoPhieuDX;  
            return Adapter.SelectByField(obj,"SoPhieuDX",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectBySoPhieuDXLST (string SoPhieuDX )
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.SoPhieuDX = SoPhieuDX;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoPhieuDX"),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien SoPhieuDX duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_DeXuatCungUngEntity> SelectBySoPhieuDXLST (string SoPhieuDX, SelectOptions option)
        { 
            TBL_DeXuatCungUngEntity obj = new TBL_DeXuatCungUngEntity();
            obj.SoPhieuDX = SoPhieuDX;  
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"SoPhieuDX",option),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectWithConditionLST (TBL_DeXuatCungUngEntity obj)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_DeXuatCungUngEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_DeXuatCungUngEntity></returns>
        public List<TBL_DeXuatCungUngEntity> SelectWithConditionLST (TBL_DeXuatCungUngEntity obj,SelectOptions option)
        { 
            return  (List<TBL_DeXuatCungUngEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_DeXuatCungUngEntity());
        }

}
}
